package com.tengju.user.infrastructure.repository;

import com.tengju.user.domain.model.user.AbmUserInfoRepository;
import com.tengju.user.domain.model.user.UserIdCode;
import com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom.AbmUserInfoMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
public class AbmUserInfoRepositoryImpl implements AbmUserInfoRepository {

    @Resource
    private AbmUserInfoMapper abmUserInfoMapper;

    @Override
    public String getPassword(UserIdCode idCode) {
        return abmUserInfoMapper.getPassword(idCode.getValue());
    }
}
